package HLCustomFarm;

import HLCode.HLObject;
import HLLib.base.HLImage;
import HLLib.base.HLList;
import HLLib.base.HLString;
import HLLib.io.HLFile;

public class HLDecorateItem extends HLObject {
    public int x;

    public int y;

    public HLImage image;

    public int id;

    public int mydid;

    public static HLList Load(HLString path) {
        HLFile file = new HLFile();
        file.Load(path);
        int count = file.ReadInt16();
        HLList datas = new HLList();
        for (int i = 0; i < count; i++) {
            HLDecorateItem house = new HLDecorateItem();
            house.x = file.ReadInt16();
            house.y = file.ReadInt16();
            datas.Add(house);
        }
        return datas;
    }
}
